package com.hy.utils;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBManager {
    private static final String URL = "jdbc:mysql://localhost:3306/hy11?characterEncoding=UTF-8&useSSL=false";
    private static final String USER = "root";
    private static final String PASS = "root";

    public static Connection getConn() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        return DriverManager.getConnection(URL, USER, PASS);
    }
}
